3.1.23 \(\int x^2 (a+b \text {sech}^{-1}(c x)) \, dx\) [23]

3.1.23.1 Optimal result
3.1.23.2 Mathematica [C] (verified)
3.1.23.3 Rubi [A] (verified)
3.1.23.4 Maple [A] (verified)
3.1.23.5 Fricas [B] (verification not implemented)
3.1.23.6 Sympy [F]
3.1.23.7 Maxima [A] (verification not implemented)
3.1.23.8 Giac [F]
3.1.23.9 Mupad [F(-1)]

3.1.23.1 Optimal result

Integrand size = 12, antiderivative size = 78 \[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=-\frac {b x \sqrt {1-c x}}{6 c^2 \sqrt {\frac {1}{1+c x}}}+\frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \arcsin (c x)}{6 c^3} \]

output
1/3*x^3*(a+b*arcsech(c*x))-1/6*b*x*(-c*x+1)^(1/2)/c^2/(1/(c*x+1))^(1/2)+1/ 
6*b*arcsin(c*x)*(1/(c*x+1))^(1/2)*(c*x+1)^(1/2)/c^3
 
3.1.23.2 Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 0.11 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.32 \[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\frac {a x^3}{3}+b \sqrt {\frac {1-c x}{1+c x}} \left (-\frac {x}{6 c^2}-\frac {x^2}{6 c}\right )+\frac {1}{3} b x^3 \text {sech}^{-1}(c x)+\frac {i b \log \left (-2 i c x+2 \sqrt {\frac {1-c x}{1+c x}} (1+c x)\right )}{6 c^3} \]

input
Integrate[x^2*(a + b*ArcSech[c*x]),x]
 
output
(a*x^3)/3 + b*Sqrt[(1 - c*x)/(1 + c*x)]*(-1/6*x/c^2 - x^2/(6*c)) + (b*x^3* 
ArcSech[c*x])/3 + ((I/6)*b*Log[(-2*I)*c*x + 2*Sqrt[(1 - c*x)/(1 + c*x)]*(1 
 + c*x)])/c^3
 
3.1.23.3 Rubi [A] (verified)

Time = 0.22 (sec) , antiderivative size = 80, normalized size of antiderivative = 1.03, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.417, Rules used = {6837, 101, 25, 39, 223}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx\)

\(\Big \downarrow \) 6837

\(\displaystyle \frac {1}{3} b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \int \frac {x^2}{\sqrt {1-c x} \sqrt {c x+1}}dx+\frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )\)

\(\Big \downarrow \) 101

\(\displaystyle \frac {1}{3} b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \left (-\frac {\int -\frac {1}{\sqrt {1-c x} \sqrt {c x+1}}dx}{2 c^2}-\frac {x \sqrt {1-c x} \sqrt {c x+1}}{2 c^2}\right )+\frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )\)

\(\Big \downarrow \) 25

\(\displaystyle \frac {1}{3} b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \left (\frac {\int \frac {1}{\sqrt {1-c x} \sqrt {c x+1}}dx}{2 c^2}-\frac {x \sqrt {1-c x} \sqrt {c x+1}}{2 c^2}\right )+\frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )\)

\(\Big \downarrow \) 39

\(\displaystyle \frac {1}{3} b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \left (\frac {\int \frac {1}{\sqrt {1-c^2 x^2}}dx}{2 c^2}-\frac {x \sqrt {1-c x} \sqrt {c x+1}}{2 c^2}\right )+\frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )\)

\(\Big \downarrow \) 223

\(\displaystyle \frac {1}{3} x^3 \left (a+b \text {sech}^{-1}(c x)\right )+\frac {1}{3} b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \left (\frac {\arcsin (c x)}{2 c^3}-\frac {x \sqrt {1-c x} \sqrt {c x+1}}{2 c^2}\right )\)

input
Int[x^2*(a + b*ArcSech[c*x]),x]
 
output
(x^3*(a + b*ArcSech[c*x]))/3 + (b*Sqrt[(1 + c*x)^(-1)]*Sqrt[1 + c*x]*(-1/2 
*(x*Sqrt[1 - c*x]*Sqrt[1 + c*x])/c^2 + ArcSin[c*x]/(2*c^3)))/3
 

3.1.23.3.1 Defintions of rubi rules used

rule 25
Int[-(Fx_), x_Symbol] :> Simp[Identity[-1]   Int[Fx, x], x]
 

rule 39
Int[((a_) + (b_.)*(x_))^(m_.)*((c_) + (d_.)*(x_))^(m_.), x_Symbol] :> Int[( 
a*c + b*d*x^2)^m, x] /; FreeQ[{a, b, c, d, m}, x] && EqQ[b*c + a*d, 0] && ( 
IntegerQ[m] || (GtQ[a, 0] && GtQ[c, 0]))
 

rule 101
Int[((a_.) + (b_.)*(x_))^2*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^( 
p_), x_] :> Simp[b*(a + b*x)*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + 
 p + 3))), x] + Simp[1/(d*f*(n + p + 3))   Int[(c + d*x)^n*(e + f*x)^p*Simp 
[a^2*d*f*(n + p + 3) - b*(b*c*e + a*(d*e*(n + 1) + c*f*(p + 1))) + b*(a*d*f 
*(n + p + 4) - b*(d*e*(n + 2) + c*f*(p + 2)))*x, x], x], x] /; FreeQ[{a, b, 
 c, d, e, f, n, p}, x] && NeQ[n + p + 3, 0]
 

rule 223
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt 
[a])]/Rt[-b, 2], x] /; FreeQ[{a, b}, x] && GtQ[a, 0] && NegQ[b]
 

rule 6837
Int[((a_.) + ArcSech[(c_.)*(x_)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Si 
mp[(d*x)^(m + 1)*((a + b*ArcSech[c*x])/(d*(m + 1))), x] + Simp[b*(Sqrt[1 + 
c*x]/(m + 1))*Sqrt[1/(1 + c*x)]   Int[(d*x)^m/(Sqrt[1 - c*x]*Sqrt[1 + c*x]) 
, x], x] /; FreeQ[{a, b, c, d, m}, x] && NeQ[m, -1]
 
3.1.23.4 Maple [A] (verified)

Time = 0.31 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.18

method result size
parts \(\frac {a \,x^{3}}{3}+\frac {b \left (\frac {c^{3} x^{3} \operatorname {arcsech}\left (c x \right )}{3}+\frac {\sqrt {-\frac {c x -1}{c x}}\, c x \sqrt {\frac {c x +1}{c x}}\, \left (-c x \sqrt {-c^{2} x^{2}+1}+\arcsin \left (c x \right )\right )}{6 \sqrt {-c^{2} x^{2}+1}}\right )}{c^{3}}\) \(92\)
derivativedivides \(\frac {\frac {a \,c^{3} x^{3}}{3}+b \left (\frac {c^{3} x^{3} \operatorname {arcsech}\left (c x \right )}{3}+\frac {\sqrt {-\frac {c x -1}{c x}}\, c x \sqrt {\frac {c x +1}{c x}}\, \left (-c x \sqrt {-c^{2} x^{2}+1}+\arcsin \left (c x \right )\right )}{6 \sqrt {-c^{2} x^{2}+1}}\right )}{c^{3}}\) \(96\)
default \(\frac {\frac {a \,c^{3} x^{3}}{3}+b \left (\frac {c^{3} x^{3} \operatorname {arcsech}\left (c x \right )}{3}+\frac {\sqrt {-\frac {c x -1}{c x}}\, c x \sqrt {\frac {c x +1}{c x}}\, \left (-c x \sqrt {-c^{2} x^{2}+1}+\arcsin \left (c x \right )\right )}{6 \sqrt {-c^{2} x^{2}+1}}\right )}{c^{3}}\) \(96\)

input
int(x^2*(a+b*arcsech(c*x)),x,method=_RETURNVERBOSE)
 
output
1/3*a*x^3+b/c^3*(1/3*c^3*x^3*arcsech(c*x)+1/6*(-(c*x-1)/c/x)^(1/2)*c*x*((c 
*x+1)/c/x)^(1/2)*(-c*x*(-c^2*x^2+1)^(1/2)+arcsin(c*x))/(-c^2*x^2+1)^(1/2))
 
3.1.23.5 Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 162 vs. \(2 (46) = 92\).

Time = 0.27 (sec) , antiderivative size = 162, normalized size of antiderivative = 2.08 \[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\frac {2 \, a c^{3} x^{3} - b c^{2} x^{2} \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}} - 2 \, b c^{3} \log \left (\frac {c x \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{x}\right ) - 2 \, b \arctan \left (\frac {c x \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}} - 1}{c x}\right ) + 2 \, {\left (b c^{3} x^{3} - b c^{3}\right )} \log \left (\frac {c x \sqrt {-\frac {c^{2} x^{2} - 1}{c^{2} x^{2}}} + 1}{c x}\right )}{6 \, c^{3}} \]

input
integrate(x^2*(a+b*arcsech(c*x)),x, algorithm="fricas")
 
output
1/6*(2*a*c^3*x^3 - b*c^2*x^2*sqrt(-(c^2*x^2 - 1)/(c^2*x^2)) - 2*b*c^3*log( 
(c*x*sqrt(-(c^2*x^2 - 1)/(c^2*x^2)) - 1)/x) - 2*b*arctan((c*x*sqrt(-(c^2*x 
^2 - 1)/(c^2*x^2)) - 1)/(c*x)) + 2*(b*c^3*x^3 - b*c^3)*log((c*x*sqrt(-(c^2 
*x^2 - 1)/(c^2*x^2)) + 1)/(c*x)))/c^3
 
3.1.23.6 Sympy [F]

\[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\int x^{2} \left (a + b \operatorname {asech}{\left (c x \right )}\right )\, dx \]

input
integrate(x**2*(a+b*asech(c*x)),x)
 
output
Integral(x**2*(a + b*asech(c*x)), x)
 
3.1.23.7 Maxima [A] (verification not implemented)

Time = 0.28 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.94 \[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\frac {1}{3} \, a x^{3} + \frac {1}{6} \, {\left (2 \, x^{3} \operatorname {arsech}\left (c x\right ) - \frac {\frac {\sqrt {\frac {1}{c^{2} x^{2}} - 1}}{c^{2} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac {\arctan \left (\sqrt {\frac {1}{c^{2} x^{2}} - 1}\right )}{c^{2}}}{c}\right )} b \]

input
integrate(x^2*(a+b*arcsech(c*x)),x, algorithm="maxima")
 
output
1/3*a*x^3 + 1/6*(2*x^3*arcsech(c*x) - (sqrt(1/(c^2*x^2) - 1)/(c^2*(1/(c^2* 
x^2) - 1) + c^2) + arctan(sqrt(1/(c^2*x^2) - 1))/c^2)/c)*b
 
3.1.23.8 Giac [F]

\[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\int { {\left (b \operatorname {arsech}\left (c x\right ) + a\right )} x^{2} \,d x } \]

input
integrate(x^2*(a+b*arcsech(c*x)),x, algorithm="giac")
 
output
integrate((b*arcsech(c*x) + a)*x^2, x)
 
3.1.23.9 Mupad [F(-1)]

Timed out. \[ \int x^2 \left (a+b \text {sech}^{-1}(c x)\right ) \, dx=\int x^2\,\left (a+b\,\mathrm {acosh}\left (\frac {1}{c\,x}\right )\right ) \,d x \]

input
int(x^2*(a + b*acosh(1/(c*x))),x)
 
output
int(x^2*(a + b*acosh(1/(c*x))), x)